package collection;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

public class StreamAPIDemo5 {
    public static void main(String[] args) {
        List<Double> list = new ArrayList<>();
        list.add(10.0);
        list.add(20.0);
        list.add(30.0);
        List<Double> list2 = list.stream().mapToDouble(e->e/2).boxed().collect(Collectors.toList());
        System.out.println(list2);
    }
}
